<script setup>


</script>

<template>
  <div class="body-content">
    <!-- 第一行 -->
    <div>
      <div class="title">
        数据池采样
      </div>
      <div class="line">
        <el-steps :active="3" align-center>
        <el-step title="采样参数设置"/>
        <el-step title="采样过程展示"/>
        <el-step title="采样筛选"/>
      </el-steps>
      </div>
    </div>
    <!-- 第二行 -->
    <div>
      <el-row style="display: flex; justify-content: space-between;">
       <!-- 第二个 -->
      <div class="second-box" style="order: 0; width: 380px;!important">
        <div class="box-title">
          1. 采样参数设置
        </div>
        <div class="laber">
          <div style="margin:15px 30px;">
              <span>采样数据集：</span>
            <select class="model-select">
              <option value="cyclegan" selected>DAGM</option>
              <option value="cyclegan" selected>AAPD</option>
              <option value="cyclegan" selected>KolektorSDD2</option>
              <option value="cyclegan" selected>MTD</option>
            </select>
          </div>
          <div style="margin:15px 30px;">
              <span>采样模型选择M1：</span>
            <select class="model-select">
              <option value="cyclegan" selected>边缘特征</option>
            </select>
          </div>
          <div style="margin:15px 30px;">
              <span>采样模型选择M2：</span>
            <select class="model-select">
              <option value="cyclegan" selected>纹理特征</option>
            </select>
          </div>
          <div style="margin:15px 30px;">
              <span>采样模型选择M3：</span>
            <select class="model-select">
              <option value="cyclegan" selected>语义特征</option>
            </select>
          </div>
          <div style="margin:15px 30px;">
              <span>采样比例：</span>
            <input type="text"  class="input-field" placeholder="0.2">
          </div>
          <div style="margin-left: 80px;">
         <el-button type="" size="big">开始采样</el-button>
        </div>
        </div>
      </div>

        <!-- 第三行 -->
        <div class="third-box">
          <div class="box-title">
            3.采样过程展示
          </div>
          <div style="display: flex; justify-content: space-between;">
            <div>
               <div class="box-blue3">
                <div class="inner-button3"> <div class="inner-button3">  <img src="@/assets/test.png" style="height: 220px; width: 300px;" alt=""></div></div>
                </div>
                <div class="box-title">
                  M1采样结果
                </div>
            </div>
            <div>
               <div class="box-blue3">
                <div class="inner-button3">  <img src="@/assets/test.png" style="height: 220px; width: 300px;" alt=""></div>
                </div>
                <div class="box-title">
                  M2采样结果
                </div>
            </div>
            <div>
               <div class="box-blue3">
                <div class="inner-button3"> <div class="inner-button3">  <img src="@/assets/test.png" style="height: 220px; width: 300px;" alt=""></div></div>
                </div>
                <div class="box-title">
                  M3采样结果
                </div>
            </div>
          </div>
         
       </div>
      </el-row>
    </div>
    <!-- 第三行 -->
    <div>
      <el-row style="flex">
        

        <!-- 第五个 -->
        <div class="third-box">
        <div class="box-title">
          3. 采样图像筛选
        </div>
        <div class="detailed-content">
          <!-- 左侧部分，占据2/5 -->
          <div class="left-content">
            
            <div>
              <div class="box-blue3">
                <div class="inner-button3"> <div class="inner-button3">  <img src="@/assets/test.png" style="height: 220px; width: 300px;" alt=""></div></div>
                </div>
                <div class="box-title">
                  展示结果
                </div>
           </div>
       
          </div>
          <!-- 右侧部分，占据3/5 -->
          <div class="right-content">
            <!-- 第一行，水平居中显示的图像生成记录 -->
            <div class="box-title">
              采样结果记录表
            </div>
            <!-- 表格 -->
            <table class="image-table">
              <thead>
                <tr class="deep-blue-row">
                  <th>序号</th>
                  <th>图片名称</th>
                  <th>采样结果</th>
                  <th>M1值</th>
                  <th>M2值</th>
                  <th>M3值</th>
                </tr>
              </thead>
              <tbody>
                <!-- 三行空着 -->
                <tr></tr>
                <tr></tr>
                <tr></tr>
                <tr></tr>
                <tr></tr>
                <tr></tr>
                <!-- 表头为蓝色，下面一行蓝色一行白色的间隔颜色，内容为空 -->
                <tr class="blue-row">
                  <td></td>
                  <td></td>
                  <td style="color: black;">是</td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr class="white-row">
                  <td></td>
                  <td></td>
                  <td>否</td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr class="blue-row">
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td></td>
                </tr>
              </tbody>
            </table>
            <!-- 按钮 -->
            <div class="action-buttons">
              <div class="delete-button">删除文件</div>
              <div class="addToDatabase-button">加入数据库</div>
            </div>
          </div>
        </div>
      </div>
      </el-row>
    </div>
  </div>
</template>
<style scoped>
.body-content{
  /* max-height: calc(100vh - 90px); */
}
.title{
  font-size: 19px;
  font-weight: 400;
  margin:10px
}
.line{
  margin-bottom: 1px;
}
::v-deep .el-step__head.is-finish {
    color: #1a1b1d;
    border-color: #2a2c2f;
}
::v-deep .el-step__title.is-finish {
  color: #1a1b1d;
}
.box-title{
  font-size: 16px;
  font-weight: 600;
  margin:10px;
  text-align:center
}
.first-box{
  border: gray solid 1px;
  /* min-width: 300px; */
  margin:15px; 
}
.box-blue {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #5b9bd5;
  width: 200px;
  height: 200px;
  margin: 10px 40px;
}
.box-blue2 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #5b9bd5;
  width: 400px;
  height: 200px;
  margin: 10px 40px;
}
.box-blue3{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #5b9bd5;
  width: 240px;
  height: 200px;
  margin: 10px 40px;
}


.inner-button {
  width: 60px;
  height: 30px;
  background-color: aliceblue;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inner-button2{
  color: white;
  font-size: 30px;
}
.second-box{
  margin:15px; 
  border: gray solid 1px;
  /* min-width: 300px; */
}
.input-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.label {
  margin-right: 10px; 
}

.input-box {
  justify-content: center;
  align-items: center;
  display: flex;
  align-items: center;
  margin-left: 40px;
}

.input-field {
  width: 100px; /* 根据需要调整宽度 */
  padding: 5px;
  height: 25px;
  box-sizing: border-box;
  text-align: center;
}
.input-field2 {
  width: 40px; /* 根据需要调整宽度 */
  padding: 5px;
  height: 25px;
  box-sizing: border-box;
  text-align: center;
  margin-right:5px
}
  .input-field3 {
  width: 50px; /* 根据需要调整宽度 */
  padding: 5px;
  height: 25px;
  box-sizing: border-box;
  text-align: center;
  margin-left: 5px;
  }
.laber{
  margin-left: 35px;
}
.third-box{
  margin:10px; 
  border: gray solid 1px;
  /* min-width: 600px; */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.begin{
  border: black solid 1px;;
  width: 80px;
  height: 30px;
  background-color: aliceblue;
  display: flex;
  justify-content: center;
  text-align:center;
  left: 50%;
  
}

.row-container {
  display: flex;
  justify-content: space-between;
  margin: 0 -10px; /* 调整整体的 margin */
}

.first-box,
.third-box {
  flex: 1;
  margin:  10px; /* 调整每个盒子的 margin */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.generation-options {
  display: flex;
  align-items: center;
}

.model-select {
  margin-right: 10px; /* 调整下拉框与按钮之间的间距 */
}

/* .begin {
  border: 1px solid black;
  padding: 5px 10px;
  cursor: pointer;
  background-color: aliceblue;
} */
.third-box {
  margin: 15px;
  border: gray solid 1px;
  min-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detailed-content {
  display: flex;
  width: 100%;
}

.left-content {
  width: 30%;
  display: flex;
  align-items: center;
  margin-left: 60px; /* 占据2/5 */
}

.right-content {
  width: 70%; /* 占据3/5 */
}



.image-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

th, td {
  border: 1px solid white;
  text-align: center;
  padding: 8px;
}

.deep-blue-row {
  background-color: #5b9bd5;
  color: white;
  height: 30px; 
}
.blue-row {
  background-color: #d2deef;
  color: white;
  height: 30px; 
}

.white-row {
  background-color: white;
  height: 30px; 
}

.action-buttons {
  display: flex;
  justify-content: center;
}

.delete-button,
.addToDatabase-button {
  border: 1px solid black;
  padding: 5px 10px;
  cursor: pointer;
  background-color: aliceblue;
  margin:10px;
}
</style>
